<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>无标题文档</title>
<link href="<%=basePath%>/manager/css/style.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript"
	src="<%=basePath%>/common/js/jQuery-1.9.1.js"></script>
</head>

<s:action name="findAllByPager" namespace="/manager_bankmessage" />

<body class="place">
	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="<%=basePath%>/common/pager/welcome.jsp">首页</a></li>
			<li>银行信息管理</li>
			<li>银行信息列表</li>
		</ul>
	</div>

	<div class="formbody">
		
		<table class="tablelist">
			<thead>
				<tr>
					<th>编号<i class="sort"><img
							src="<%=basePath%>/manager/images/px.gif" /></i></th>
					<th>银行名称</th>
					<th>银行卡号</th>
					<th>持卡人</th>
					<th>状态</th>
					<th>备注信息</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${pm.datas}" var="bm" varStatus="i">
					<tr>
						<td>${i.index+1}</td>
						<td>${bm.bmBankName}</td>
						<td>${bm.bmNumber}</td>
						<td>${bm.bmCardHolder}</td>
						<td>${bm.bmStatus == 0 ? "正常" : "禁用" }</td>
						<td>${bm.bmRemark}</td>
						<td><a
							href="<%= application.getContextPath() %>/manager_bankmessage/input?bmId=${bm.bmId}"
							class="tablelink">修改</a></td> <%-- <a
							href="<%= application.getContextPath() %>/manager_bankmessage/delete?bmId=${bm.bmId}"
							class="tablelink">删除</a> --%>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		<pg:pager url="list.jsp" items="${pager.total}"
			export="currentPageNumber=pageNumber" maxPageItems="10"
			maxIndexPages="10">

			<div class="pagin">
				<div class="message">
					共<i class="blue">${pager.total}</i>条记录，当前显示第&nbsp;<i class="blue">${currentPageNumber}&nbsp;</i>页
				</div>
				<ul class="paginList">

					<li class="paginItem"><pg:prev>
							<a href="${pageUrl}"><span class="pagepre"></span></a>
						</pg:prev></li>
					<pg:pages>
						<c:choose>
							<c:when test="${currentPageNumber eq pageNumber}">
								<li class="paginItem"><a style="color: red">${pageNumber}</a></li>
							</c:when>
							<c:otherwise>
								<li class="paginItem"><a href="${pageUrl }">${pageNumber}</a></li>
							</c:otherwise>
						</c:choose>
					</pg:pages>
					<li class="paginItem"><pg:next>
							<a href="${pageUrl}"><span class="pagenxt"></span></a>
						</pg:next></li>
				</ul>
			</div>
		</pg:pager>

	</div>

</body>
</html>

